import request from "../request";

const Api = {
  login: "/user/login",
  userPage: "/user/page",
  getAllIncomeMoney: "/admin/income/total-money",
};

export function userLogin(param: any) {
  return request({
    url: Api.login,
    method: "POST",
    data: param,
  });
}

export function getAllIncomeMoney() {
  return request({
    url: Api.getAllIncomeMoney,
    method: "GET",
  });
}

export function getUserInfoPage(param: any) {
  return request({
    url: Api.userPage,
    method: "GET",
    params: param,
  });
}
